package com.atguigu.demo.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("user")
public class User {
    //主键自增
    @TableId(type = IdType.AUTO)
    private Long id;

    //普通列
    @TableField("user_name")
    private String name;


    private Integer age;
    private String email;
}
